$(document).ready(function () {
    $("#searchForm").validate({
        rules: {
            search: {
                required: true
            }
        },
        messages: {
            search: "You didn't tell us where you're going. Provide a place."
        },
        submitHandler: function (form) {
            form.submit();
        }
    });

    $("#emailForm").validate({
        rules: {
            emailField: {
                required: true,
                email: true
            }
        },
        messages: {
            emailField: "Please enter a valid email address"
        },
        submitHandler: function (form) {
            form.submit();
        }
    });
});